package com.alibaba.algo.domain.user;

import com.alibaba.algo.core.base.BaseDomain;
import com.alibaba.algo.dao.user.SysCarouselMapper;
import com.alibaba.algo.entity.user.SysCarousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName SysCarouselDomain
 * @Description 系统轮播图domain
 * @Author wangke
 * @Date 2021/8/10 20:50
 */
@Component
public class SysCarouselDomain extends BaseDomain<SysCarousel> {

    @Autowired
    private SysCarouselMapper sysCarouselMapper;

    public SysCarousel getSysCarousel(){
        return sysCarouselMapper.getOne();
    }

    public int insertSysCarousel(SysCarousel sysCarousel){
        return sysCarouselMapper.insert(sysCarousel);
    }

}
